package cn.mdmbct.douyin.data.response.user;

import cn.mdmbct.douyin.common.response.DefaultResponseData;
import cn.mdmbct.douyin.common.response.DyOpenApiResponse;
import cn.mdmbct.douyin.common.response.ResponseExtra;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 获取用户视频情况返回
 *
 * @author mdmbct  mdmbct@outlook.com
 * @date 2021/3/18 15:13
 * @modified mdmbct
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DataUserItemBaseRes implements DyOpenApiResponse {

    private static final long serialVersionUID = 4134167307496304414L;
    private ResponseExtra extra;

    private DataUserItemResData data;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @EqualsAndHashCode(callSuper = true)
    public static class DataUserItemResData extends DefaultResponseData {

        private static final long serialVersionUID = -3036964220602010965L;

        @JSONField(name = "result_list")
        private List<ItemCount> resultList;

    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ItemCount implements Serializable {

        private static final long serialVersionUID = 2976223496761334449L;

        private String date;

        @JSONField(name = "new_issue")
        private int newIssue;

        @JSONField(name = "new_play")
        private long newPlay;

        @JSONField(name = "total_issue")
        private long totalIssue;

    }
}
